package com.cjy.Runnable;

import java.util.ArrayList;
import java.util.List;

public class RunnableTest implements Runnable{
    private ArrayList<Student> list;

    public RunnableTest(ArrayList list) {
        this.list = list;
    }

    @Override

    public void run() {
        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i).getId()+list.get(i).getName());
        }
    }
}
